<?php
/**
 * Created by PhpStorm.
 * User: 18879810386
 * Date: 2016/10/17
 * Time: 20:52
 */header('content-type:text/html;charset:utf-8');
require'./function.php';


$link=dbinit();
$where='';
$sql_order='';$sort='asc';if(isset($_GET['order'])){
    if(isset($_GET['sort'])){$sort=$_GET['sort'];}$sql_order="order by {'$_GET[order]'}'";}

if(isset($_GET['keyword'])){$keyword=$_GET['keyword'];$keyword=safeHandle($link,$keyword);$where="where e_name like '%$keyword%'";}
$sql="select* from `emp_info`$where";





$emp_info=fetchAll($link,$sql);

define('APP','itcast');
require './list_html.php';?>
